package com.example.administrator.service;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

/**
 * Created by Administrator on 2018/5/30.
 */

public class AlarmRecevier extends BroadcastReceiver{
    @Override
    public void onReceive(Context context, Intent intent) {
        /*
		 * 相当于： Intent i=new Intent(context,NotifyService.class);
		 * context.startService(i);
		 */
        context.startService(new Intent(context,NotifyService.class));
    }
}
